export const randomWallet = `
import { Wallet } from 'ethers'

const wallet = Wallet.createRandom()
`

export const mnemonicWallet = `
import { utils } from 'ethers'

const mnemonic = utils.entropyToMnemonic(utils.randomBytes(32))
/*
  pelican input identify cup laugh witness wait twice 
  whip smile recall gospel master pilot between post 
  beauty else dumb galaxy clump rigid follow gentle
*/ 

const wallet = utils.HDNode.fromMnemonic(mnemonic)
`

export const encryptWallet = `
import { Wallet } from 'ethers'

const keystore = await Wallet.createRandom().encrypt(password, (progress: number) => {
  callback && callback(progress)
})
`

export const fromEncryptedJson = `
import { Wallet } from 'ethers'

Wallet.fromEncryptedJson(keystore, password, (progress: number) => {
  callback && callback(progress)
})
`
